package anonymous;

public class Main {
    public static void main(String[] args) {
        new Son().bb();
    }
}


interface AA {
    void aa();
}
interface BB extends AA {
    void bb();
}

abstract class X{
    abstract public void bb();

    public void aa() {

    }
}

class Son extends X {
    public static void main(String[] args) {
        new Son().bb();
    }

    private int a = 88;

    public void bb() {
        System.out.println("invoke Son.bb...");
        new BB() {
            public void bb() {
                System.out.println(a);
            }
            public void aa() {
            }
        }.bb();
    }
}
